home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
pcboard
/
ppepakts.zip
/
CS.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-05-30
|
18KB
|
865 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Date TDATE001(1000)
Integer INTEGER001
Integer TINTEGER002(12)
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
Integer INTEGER007
Integer INTEGER008
Integer TINTEGER009(12)
Integer INTEGER010
Integer INTEGER011
Integer INTEGER012
Integer INTEGER013
Integer INTEGER014
Integer INTEGER015
Money MONEY001
Money TMONEY002(1000)
Money MONEY003
Money MONEY004
Money MONEY005
Money MONEY006
String STRING001
String STRING002
String TSTRING003(1000)
String STRING004
String STRING005
String TSTRING006(12)
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
String STRING012
String STRING013
String STRING014
String STRING015
String STRING016
;------------------------------------------------------------------------------
Cls
STRING008 = " A 2 3 4 5 6 7 8 910 J Q K A 2 3 4 5 6 7 8 910 J Q K A 2 3 4 5 6 7 8 910 J Q K A 2 3 4 5 6 7 8 910 J Q K W* ⌡#"
STRING010 = "140203040506070809101112131402030405060708091011121314020304050607080910111213140203040506070809101112130015"
STRING002 = "YES"
INTEGER015 = 1
Gosub LABEL019
If (INTEGER001 <> 942504) Then
Gosub LABEL020
Else
Gosub LABEL024
Endif
GetUser
Gosub LABEL021
Newline
If (STRING004 == "YES") Then
STRING011 = "N"
Else
STRING011 = "Y"
Endif
InputYN "Would like the instructions/rules", STRING011, 14
If (STRING011 <> YesChar()) Then
Goto LABEL001
Else
Goto LABEL027
Endif
:LABEL001
STRING013 = Time()
STRING012 = "Started Card Sharks at "
Log STRING012 + STRING013, 1
Cls
:LABEL002
AnsiPos 25, 1
Print "@X0AC A R D S H A R K S"
AnsiPos 1, 1
Print "@X0C@FIRST@"
AnsiPos 1, 3
Print "@X0B┌─────┐ ┌─────┐┌─────┐"
AnsiPos 1, 4
Print "@X0B│ │ │ ││ │"
AnsiPos 1, 5
Print "@X0B│ │ │ ││ │"
AnsiPos 1, 6
Print "@X0B│ │ │ ││ │"
AnsiPos 1, 7
Print "@X0B└─────┘ └─────┘└─────┘"
AnsiPos 1, 8
Print "@X0B┌─────┐ ┌─────┐┌─────┐┌─────┐"
AnsiPos 1, 9
Print "@X0B│ │ │ ││ ││ │"
AnsiPos 1, 10
Print "@X0B│ │ │ ││ ││ │"
AnsiPos 1, 11
Print "@X0B│ │ │ ││ ││ │"
AnsiPos 1, 12
Print "@X0B└─────┘ └─────┘└─────┘└─────┘"
AnsiPos 1, 13
Print "@X0B┌─────┐ ┌─────┐┌─────┐┌─────┐┌─────┐"
AnsiPos 1, 14
Print "@X0B│ │ │ ││ ││ ││ │"
AnsiPos 1, 15
Print "@X0B│ │ │ ││ ││ ││ │"
AnsiPos 1, 16
Print "@X0B│ │ │ ││ ││ ││ │"
AnsiPos 1, 17
Print "@X0B└─────┘ └─────┘└─────┘└─────┘└─────┘"
AnsiPos 63, 1
Print "@X0BStatistics"
AnsiPos 43, 2
Print "@X78┌────────────────────────┬─────────┐"
AnsiPos 43, 3
Print "@X78│ @X75Money@X78 │@X75Min. left@X78│@X08█"
AnsiPos 43, 4
Print "@X78├@X7E", Right(MONEY003, 23), " @X78┼@X7E", Right(MinLeft(), 6), " @X78┤@X08█"
AnsiPos 43, 5
Print "@X78├────────────────────────┼─────────┤█"
AnsiPos 43, 6
Print "@X78│@X75 Bet @X78│@X75 Round @X78│@X08█"
AnsiPos 43, 7
Print "@X78├ ┼@X7D", Right(INTEGER015, 6), " @X78┤@X08█"
AnsiPos 43, 8
Print "@X78└────────────────────────┴─────────┘@X08█"
AnsiPos 43, 9
Print "@X08 ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
AnsiPos 43, 10
Print "@X78┌──────────────────────────────────┐"
AnsiPos 43, 11
Print "@X78│ │@X08█"
AnsiPos 43, 12
Print "@X78│ │@X08█"
AnsiPos 43, 13
Print "@X78└──────────────────────────────────┘@X08█"
AnsiPos 43, 14
Print "@X08 ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
AnsiPos 45, 11
Print "@X75(A)ll (H)alf (C)hange (Q)uit"
AnsiPos 43, 16
Print "@X78┌──────────────────────────────────┐"
AnsiPos 43, 17
Print "@X78│ │@X08█"
AnsiPos 43, 18
Print "@X78└──────────────────────────────────┘@X08█"
AnsiPos 43, 19
Print "@X08 ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
AnsiPos 45, 20
Print "@X05Grand Total: "
AnsiPos 58, 20
Print "@X0E", Right(MONEY004, 19)
INTEGER013 = 1
INTEGER011 = 5
INTEGER014 = 15
MONEY005 = 0
INTEGER003 = 0
STRING009 = ""
MONEY003 = MONEY001
STRING014 = "NO"
STRING015 = "NO"
STRING016 = "NO"
AnsiPos 1, 18
Print "@X8EShuffling cards . . . ."
Gosub LABEL016
AnsiPos 1, 18
Print "@X0E "
Gosub LABEL011
:LABEL003
Gosub LABEL023
AnsiPos 44, 4
Print "@X7E", Right(MONEY003, 23)
AnsiPos 69, 4
Print "@X7E", Right(MinLeft(), 6)
AnsiPos 44, 7
Print "@X77", Space(23)
:LABEL004
STRING007 = ""
If (INTEGER013 == 7) Then
MONEY006 = MONEY003 / 2
AnsiPos 43, 15
Print "@X0DYou must bet at least: ", MONEY006
Endif
AnsiPos 45, 12
InputStr "Enter bet or option", STRING007, 126, 8, " CNFAHQMD.1234567890", 8
AnsiPos 1, 19
Print Space(40)
If ((STRING007 == "D") && ((U_Name() == "DEAN HUNTLEY") || (CurSec() >= SysopSec()))) Then
Cls
DispFile PPEPath() + "CS.dat", 2 + 1 + 4
Wait
Goto LABEL001
Endif
If ((STRING007 == "M") && ((U_Name() == "DEAN HUNTLEY") || (CurSec() >= SysopSec()))) Then
Cls
InputText "Change dollar amount", MONEY004, 14, 10
Newline
Wait
Goto LABEL001
Endif
If ((STRING007 == "CNF") && ((U_Name() == "DEAN HUNTLEY") || (CurSec() >= SysopSec()))) Then
Cls
InputText "Change BBS name", STRING001, 14, 45
Newline
InputText "Change verfication #", INTEGER001, 14, 6
Newline
InputText "Change starting bet", MONEY001, 14, 7
Newline
FOpen 0, PPEPath() + "CS.cnf", 1, 0
FPutLn 0, STRING001
FPutLn 0, INTEGER001
FPutLn 0, MONEY001
FClose 0
Wait
Goto LABEL001
Endif
If (STRING007 == "C") Then
If ((INTEGER013 <= 4) && (STRING014 == "NO")) Then
Gosub LABEL026
AnsiPos 3, 15
Print TSTRING006(10)
TSTRING006(INTEGER013 - 1) = TSTRING006(10)
TINTEGER009(INTEGER013 - 1) = TINTEGER009(10)
STRING014 = "YES"
INTEGER013 = INTEGER013 - 1
INTEGER011 = INTEGER011 - 7
Gosub LABEL011
If (TINTEGER009(10) == 15) Then
AnsiPos 1, 19
Print "@X0ASorry. Try playing again tomorrow."
AnsiPos 1, 22
Wait
Goto LABEL018
Endif
Endif
If (((INTEGER013 >= 5) && (INTEGER013 <= 6)) && (STRING015 == "NO")) Then
Gosub LABEL026
AnsiPos 3, 10
Print TSTRING006(11)
TSTRING006(INTEGER013 - 1) = TSTRING006(11)
TINTEGER009(INTEGER013 - 1) = TINTEGER009(11)
STRING015 = "YES"
INTEGER013 = INTEGER013 - 1
INTEGER011 = INTEGER011 - 7
Gosub LABEL011
If (TINTEGER009(11) == 15) Then
AnsiPos 1, 19
Print "@X0ASorry. Try playing again tomorrow."
AnsiPos 1, 22
Wait
Goto LABEL018
Endif
Endif
If (((INTEGER013 >= 7) && (INTEGER013 <= 8)) && (STRING016 == "NO")) Then
Gosub LABEL026
AnsiPos 3, 5
Print TSTRING006(12)
TSTRING006(INTEGER013 - 1) = TSTRING006(12)
TINTEGER009(INTEGER013 - 1) = TINTEGER009(12)
STRING016 = "YES"
INTEGER013 = INTEGER013 - 1
INTEGER011 = INTEGER011 - 7
Gosub LABEL011
If (TINTEGER009(12) == 15) Then
AnsiPos 1, 19
Print "@X0ASorry. Try playing again tomorrow."
AnsiPos 1, 22
Wait
Goto LABEL018
Endif
Endif
Goto LABEL004
Endif
Select Case (STRING007)
Case "A"
MONEY005 = MONEY003
Case "H"
MONEY005 = MONEY003 / 2
If (STRING007 == "Q") Then
If (INTEGER013 > 2) Then
STRING011 = "N"
AnsiPos 1, 21
InputYN "You really want to quit and lose your grand total", STRING011, 14
If (STRING011 == YesChar()) Then
Goto LABEL018
Goto LABEL005
Endif
AnsiPos 1, 21
Print " "
Goto LABEL004
Endif
:LABEL005
Goto LABEL018
Endif
If (STRING007 == "") Then
Goto LABEL004
Endif
MONEY005 = S2I(STRING007, 10)
MONEY005 = MONEY005 * 100
Case 7, MONEY006
Goto LABEL004
End Select
If (MONEY005 > MONEY003) Then
AnsiPos 1, 19
Print "@X09You don't have ", MONEY005, " to bet."
Goto LABEL004
Endif
If (MONEY005 <= 0) Then
Goto LABEL004
Endif
AnsiPos 56, 7
Print "@X74", Right(MONEY005, 11), "@X0E"
:LABEL006
AnsiPos 45, 17
InputStr "Is next card (H)igher/(L)ower", STRING002, 126, 1, "HLQ", 8
If (STRING002 == "H") Then
If (TINTEGER009(INTEGER013) == 0) Then
AnsiPos 1, 19
Print "@X0AGood guess. You won ", MONEY005, " and 5 min."
AdjTime 5
MONEY003 = MONEY003 + MONEY005
Goto LABEL007
Endif
If (TINTEGER009(INTEGER013 - 1) == 0) Then
AnsiPos 1, 19
Print "@X0AGood guess. You won ", MONEY005, "."
MONEY003 = MONEY003 + MONEY005
Goto LABEL007
Endif
If (TINTEGER009(INTEGER013) == 15) Then
AnsiPos 1, 19
Print "@X0ASorry. Try playing again tomorrow."
MONEY003 = MONEY003
Gosub LABEL011
INTEGER013 = 1
AnsiPos 1, 22
Wait
Goto LABEL018
Endif
If (TINTEGER009(INTEGER013) > TINTEGER009(INTEGER013 - 1)) Then
AnsiPos 1, 19
Print "@X0AGood guess. You won ", MONEY005, "."
MONEY003 = MONEY003 + MONEY005
Endif
If (TINTEGER009(INTEGER013) == TINTEGER009(INTEGER013 - 1)) Then
AnsiPos 1, 19
Print "@X0BYou tied...."
MONEY003 = MONEY003
Endif
If (TINTEGER009(INTEGER013) < TINTEGER009(INTEGER013 - 1)) Then
AnsiPos 1, 19
Print "@X0CSorry, you guessed incorrectly."
MONEY003 = MONEY003 - MONEY005
If (MONEY003 == 0) Then
STRING009 = "NO"
Endif
Endif
:LABEL007
Gosub LABEL026
Gosub LABEL011
Goto LABEL003
Endif
If (STRING002 == "L") Then
If (TINTEGER009(INTEGER013) == 0) Then
AnsiPos 1, 19
Print "@X0AGood guess. You won ", MONEY005, " and 5 min."
AdjTime 5
MONEY003 = MONEY003 + MONEY005
Goto LABEL008
Endif
If (TINTEGER009(INTEGER013 - 1) == 0) Then
AnsiPos 1, 19
Print "@X0AGood guess. You won ", MONEY005, "."
MONEY003 = MONEY003 + MONEY005
Goto LABEL008
Endif
If (TINTEGER009(INTEGER013) == 15) Then
AnsiPos 1, 19
Print "@X0ASorry. Try playing again tomorrow."
MONEY003 = MONEY003
Gosub LABEL011
INTEGER013 = 1
AnsiPos 1, 22
Wait
Goto LABEL018
Endif
If (TINTEGER009(INTEGER013) < TINTEGER009(INTEGER013 - 1)) Then
AnsiPos 1, 19
Print "@X0AGood guess. You won ", MONEY005, "."
MONEY003 = MONEY003 + MONEY005
Endif
If (TINTEGER009(INTEGER013) == TINTEGER009(INTEGER013 - 1)) Then
AnsiPos 1, 19
Print "@X0BYou tied...."
MONEY003 = MONEY003
Endif
If (TINTEGER009(INTEGER013) > TINTEGER009(INTEGER013 - 1)) Then
AnsiPos 1, 19
Print "@X0CSorry, you guessed incorrectly."
MONEY003 = MONEY003 - MONEY005
If (MONEY003 == 0) Then
STRING009 = "NO"
Endif
Endif
:LABEL008
Gosub LABEL026
Gosub LABEL011
Goto LABEL003
Endif
If (STRING002 == "Q") Then
Gosub LABEL026
If (INTEGER013 > 2) Then
STRING011 = "N"
AnsiPos 1, 21
InputYN "You really want to quit and lose your grand total", STRING011, 14
If (STRING011 == YesChar()) Then
Goto LABEL018
Goto LABEL009
Endif
AnsiPos 1, 21
Print " "
Goto LABEL006
Endif
:LABEL009
Else
Goto LABEL006
If ((MONEY003 == 0) && (MONEY004 == 0)) Then
AnsiPos 1, 20
Print "@X0EYou have no more money to play with for today. Play again tomorrow."
Delay 90
Else
Return
:LABEL010
If (INTEGER013 < 7) Then
MONEY004 = MONEY004 + MONEY003
Else
MONEY004 = MONEY003
Endif
INTEGER013 = 1
AnsiPos 58, 20
Print "@X0E", Right(MONEY004, 19)
AnsiPos 56, 4
Print "@X77", Space(11)
AnsiPos 56, 7
Print "@X77", Space(11)
STRING011 = "Y"
AnsiPos 1, 21
InputYN "Would like to play again", STRING011, 14
If (STRING011 == YesChar()) Then
Cls
STRING009 = ""
INTEGER015 = INTEGER015 + 1
Goto LABEL002
Else
Goto LABEL018
Endif
:LABEL011
If (INTEGER013 <= 4) Then
If ((STRING015 == "YES") && (INTEGER013 == 4)) Then
INTEGER014 = 10
Goto LABEL012
Endif
INTEGER014 = 15
:LABEL012
INTEGER011 = INTEGER011 + 7
Endif
If ((INTEGER013 >= 5) && (INTEGER013 <= 6)) Then
If ((STRING016 == "YES") && (INTEGER013 == 6)) Then
INTEGER014 = 5
Goto LABEL013
Endif
INTEGER014 = 10
:LABEL013
INTEGER011 = INTEGER011 + 7
Endif
If ((INTEGER013 >= 7) && (INTEGER013 <= 9)) Then
INTEGER014 = 5
INTEGER011 = INTEGER011 + 7
Endif
AnsiPos INTEGER011, INTEGER014
Print TSTRING006(INTEGER013), "@X80"
INTEGER013 = INTEGER013 + 1
If (INTEGER013 == 5) Then
If (STRING009 <> "NO") Then
MONEY003 = MONEY003 + 20000
Goto LABEL014
Endif
MONEY003 = 0
:LABEL014
INTEGER011 = 12
AnsiPos 12, 10
Print TSTRING006(INTEGER013 - 1)
Endif
If (INTEGER013 == 7) Then
If (STRING009 <> "NO") Then
MONEY003 = MONEY003 + 20000
MONEY003 = MONEY003 + MONEY004
Goto LABEL015
Endif
MONEY003 = MONEY004
:LABEL015
AnsiPos 58, 20
INTEGER011 = 12
AnsiPos 12, 5
Print TSTRING006(INTEGER013 - 1)
AnsiPos 58, 20
Print "@X0E", Right(MONEY003, 19)
Endif
If ((INTEGER013 == 8) || (STRING009 == "NO")) Then
Goto LABEL010
Endif
Return
:LABEL016
For INTEGER010 = 1 To 12
TINTEGER002(INTEGER010) = 0
Next
For INTEGER006 = 1 To 12
:LABEL017
If (INTEGER006 == 1) Then
TINTEGER002(INTEGER006) = Random(52)
Else
TINTEGER002(INTEGER006) = Random(54)
Endif
If (TINTEGER002(INTEGER006) < 1) Goto LABEL017
If (INTEGER006 > 1) Then
For INTEGER012 = 1 To INTEGER006 - 1
If (TINTEGER002(INTEGER012) == TINTEGER002(INTEGER006)) Goto LABEL017
Next
Endif
TSTRING006(INTEGER006) = Mid(STRING008, TINTEGER002(INTEGER006) * 3 - 2, 3)
If (Mid(TSTRING006(INTEGER006), 3, 1) == "*") Then
TSTRING006(INTEGER006) = "@X0C" + TSTRING006(INTEGER006)
Endif
If (Mid(TSTRING006(INTEGER006), 3, 1) == "#") Then
TSTRING006(INTEGER006) = "@X0D" + TSTRING006(INTEGER006)
Endif
If (Mid(TSTRING006(INTEGER006), 3, 1) == "") Then
TSTRING006(INTEGER006) = "@X0A" + TSTRING006(INTEGER006)
Endif
If (Mid(TSTRING006(INTEGER006), 3, 1) == "") Then
TSTRING006(INTEGER006) = "@X0B" + TSTRING006(INTEGER006)
Endif
If (Mid(TSTRING006(INTEGER006), 3, 1) == "") Then
TSTRING006(INTEGER006) = "@X03" + TSTRING006(INTEGER006)
Endif
If (Mid(TSTRING006(INTEGER006), 3, 1) == "") Then
TSTRING006(INTEGER006) = "@X09" + TSTRING006(INTEGER006)
Endif
TINTEGER009(INTEGER006) = Mid(STRING010, TINTEGER002(INTEGER006) * 2 - 1, 2)
Next
Return
Endif
Endif
:LABEL018
If (INTEGER013 > 2) Then
MONEY004 = 0
Endif
If (STRING004 == "YES") Then
If ((U_Name() == "DEAN HUNTLEY") || (CurSec() >= SysopSec())) Then
TDATE001(INTEGER005) = "00-00-00"
Else
TDATE001(INTEGER005) = Date()
Endif
TMONEY002(INTEGER005) = MONEY004
Else
INTEGER004 = INTEGER004 + 1
If ((U_Name() == "DEAN HUNTLEY") || (CurSec() >= SysopSec())) Then
TDATE001(INTEGER004) = "00-00-00"
Else
TDATE001(INTEGER004) = Date()
Endif
TSTRING003(INTEGER004) = U_Name()
TMONEY002(INTEGER004) = MONEY004
Endif
Gosub LABEL025
FOpen 0, PPEPath() + "CS.DAT", 1, 0
FPutLn 0, INTEGER004
For INTEGER006 = 1 To INTEGER004
FPutLn 0, TDATE001(INTEGER006)
FPutLn 0, TSTRING003(INTEGER006)
FPutLn 0, TMONEY002(INTEGER006)
Next
FClose 0
Goto LABEL028
:LABEL019
FOpen 0, PPEPath() + "CS.cnf", 0, 0
FGet 0, STRING001
FGet 0, INTEGER001
FGet 0, MONEY001
FClose 0
Return
:LABEL020
Cls
PrintLn
PrintLn "@X01 @X71┌────────────────────────────────────────────────────┐@X00"
PrintLn "@X01 @X78│ @X71│@X00"
PrintLn "@X01 @X78│ @X74 UNREGISTERED version @X71│@X00"
PrintLn "@X01 @X78│ @X71│@X00"
PrintLn "@X01 @X78│ @X74 CARD SHARKS V(1.0) @X71│@X00"
PrintLn "@X01 @X78│ @X71│@X00"
PrintLn "@X01 @X78│ @X71│@X00"
PrintLn "@X01 @X78│ @X74 You can register me for $10 - refer to @X71│@X00"
PrintLn "@X01 @X78│ @X74 the documentation supplied with the program. @X71│@X00"
PrintLn "@X01 @X78│ @X71│@X00"
PrintLn "@X01 @X78└────────────────────────────────────────────────────@X71┘@X00"
PrintLn "@X01"
PrintLn "@X0ACopyright (c) 1994 Tin Shack Software"
AnsiPos 1, 18
PrintLn "Please wait...."
Delay 180
Return
:LABEL021
If (FileInf(PPEPath() + "CS.DAT", 1) <> 1) Then
FCreate 0, PPEPath() + "CS.DAT", 2, 0
INTEGER004 = 0
FPutLn 0, INTEGER004
FClose 0
Else
FOpen 0, PPEPath() + "CS.DAT", 0, 0
FGet 0, INTEGER004
For INTEGER006 = 1 To INTEGER004
FGet 0, TDATE001(INTEGER006)
FGet 0, TSTRING003(INTEGER006)
FGet 0, TMONEY002(INTEGER006)
TSTRING003(INTEGER006) = RTrim(TSTRING003(INTEGER006), " ")
TDATE001(INTEGER006) = RTrim(TDATE001(INTEGER006), " ")
If (TDATE001(INTEGER006) == Date()) Then
If (TSTRING003(INTEGER006) == U_Name()) Then
STRING002 = "NO"
FClose 0
Goto LABEL022
Endif
Continue
Endif
If (TSTRING003(INTEGER006) == U_Name()) Then
MONEY004 = TMONEY002(INTEGER006)
INTEGER005 = INTEGER006
STRING004 = "YES"
Endif
Next
FClose 0
Endif
:LABEL022
If (STRING002 == "NO") Then
AnsiPos 1, 20
Print "Sorry, you have already played once today....."
AnsiPos 1, 21
Wait
End
Endif
Return
:LABEL023
If (MinLeft() <= 5) Then
AnsiPos 1, 20
Print "@X0EYou only have ", MinLeft(), " minutes left on your session."
Endif
If (MinLeft() < 2) Then
AnsiPos 1, 20
Print "@X0EI am saving your game at this point. You only have ", MinLeft(), " minute left."
Goto LABEL018
Endif
Return
:LABEL024
Cls
PrintLn " @X0A█████ ████ ████ ████ @X0DCopyright (c) 1994 Tin Shack Software"
PrintLn " @X0B█ █ █ █ █ █ █"
PrintLn " @X0F█ ██████ ████ █ █"
PrintLn " @X0B█ █ █ █ █ █ █"
PrintLn " @X0A█████ █ █ █ █ ████"
PrintLn
PrintLn " @X0A ██████ █ █ ███ ████ █ █ █████ "
PrintLn " @X0B █ █ █ █ █ █ █ █ █ █ "
PrintLn " @X0F ██████ █████ █████ ████ ██ █████ "
PrintLn " @X0B █ █ █ █ █ █ █ █ █ █ "
PrintLn " @X0A ██████ █ █ █ █ █ █ █ █ █████ "
PrintLn
PrintLn "@X0E NAMES HIGH SCORE LAST PLAY"
PrintLn "@X0C ──────────────────────────────────────────────────────────────@X0E"
For INTEGER006 = 1 To 5
AnsiPos 1, INTEGER006 + 14
Print "@X05 ", Left(ReadLine(PPEPath() + "cs.dat", INTEGER006 * 3), 25)
AnsiPos 25, INTEGER006 + 14
Print "@X05 ", Right(ReadLine(PPEPath() + "cs.dat", INTEGER006 * 3 + 1), 16)
AnsiPos 50, INTEGER006 + 14
Print "@X05 ", Right(ReadLine(PPEPath() + "cs.dat", INTEGER006 * 3 - 1), 9)
Next
PrintLn
Return
:LABEL025
INTEGER007 = 0
While (INTEGER007 == 0) Do
INTEGER007 = 1
For INTEGER008 = 1 To INTEGER004
If (TMONEY002(INTEGER008) >= TMONEY002(INTEGER008 + 1)) Then
Continue
Endif
STRING005 = TMONEY002(INTEGER008)
TMONEY002(INTEGER008) = TMONEY002(INTEGER008 + 1)
TMONEY002(INTEGER008 + 1) = STRING005
STRING005 = TSTRING003(INTEGER008)
TSTRING003(INTEGER008) = TSTRING003(INTEGER008 + 1)
TSTRING003(INTEGER008 + 1) = STRING005
STRING005 = TDATE001(INTEGER008)
TDATE001(INTEGER008) = TDATE001(INTEGER008 + 1)
TDATE001(INTEGER008 + 1) = STRING005
INTEGER007 = 0
Next
EndWhile
Return
:LABEL026
AnsiPos 45, 12
Print "@X7E", Space(32), "@X0E"
AnsiPos 45, 17
Print "@X7E", Space(32), "@X0E"
Return
:LABEL027
Cls
AnsiPos 22, 1
Print "@X0DC A R D S H A R K S"
Newline
PrintLn "@X0EThe object of the game is to guess if the next card drawn will be "
PrintLn "higher or lower than the card showing. Each time you start the game "
PrintLn "you are given $200.00. You can play on this $200.00 until you reach the "
PrintLn "sixth card on the rack. At this point you can bet with your Grand Total"
PrintLn "of accumualted winnings."
PrintLn " Winnings:"
PrintLn "When you have guessed the next card correctly, you will win what you have"
PrintLn "bet. If the next card displayed is equal to the previous card then you tie."
PrintLn "When you tie you keep what you bet. If you guessed the next card incorrectly"
PrintLn "and lose then you will be asked if you wish to play again."
PrintLn "When betting, you also have the option one time per level to change the card"
PrintLn "showing. The card to the far left is the option card."
PrintLn
PrintLn "@X8DNOTE: @X0EIf, at any time following the second card you exit the game in order"
PrintLn "to avoid playing out a hand, you will lose all of your accumulated winnings."
PrintLn "Also, if the card displayed is a @X0CW*@X0E (wild card) then you win your bet plus"
PrintLn "5 minutes. When this @X0CW*@X0E card is displayed bet all against it and guess "
PrintLn "(H)igher or (L)ower because either way you'll win. If you get a @X0D⌡#@X0E your game"
PrintLn "is over for the day."
PrintLn " End of instructions/rules"
Wait
Goto LABEL001
:LABEL028
STRING013 = Time()
STRING012 = "Ended Card Sharks at "
Log STRING012 + STRING013, 1
If (INTEGER001 <> 942504) Then
Gosub LABEL020
AnsiPos 1, 21
Wait
Else
Gosub LABEL024
AnsiPos 1, 21
Wait
Endif
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 2 End
; 9 Cls
; 12 Wait
; 151 Goto
; 134 Let
; 84 Print
; 50 PrintLn
; 86 If
; 1 DispFile
; 1 FCreate
; 4 FOpen
; 6 FClose
; 7 FGet
; 8 FPutLn
; 1 GetUser
; 2 AdjTime
; 2 Log
; 2 InputStr
; 4 InputYN
; 23 Gosub
; 10 Return
; 2 Delay
; 6 Newline
; 4 InputText
; 99 AnsiPos
;
;
; ■ Functions used :
;
; 6 *
; 2 /
; 54 +
; 29 -
; 62 ==
; 6 <>
; 13 <
; 15 <=
; 7 >
; 24 >=
; 84 !
; 28 &&
; 13 ||
; 8 Mid()
; 1 Left()
; 11 Right()
; 6 Space()
; 2 RTrim()
; 2 Random()
; 3 Date()
; 2 Time()
; 8 U_Name()
; 4 YesChar()
; 10 PPEPath()
; 3 ReadLine()
; 5 SysopSec()
; 5 CurSec()
; 6 MinLeft()
; 1 S2I()
; 1 FileInf()
;
;------------------------------------------------------------------------------
;
; Analysis flags : As
;
; A - Adjust online time remaining ■ 5
; Program modify the amount of online time remaining, this may
; be a way to bypass time limits
; ■ Search for : ADJTIME
;
; s - Sysop level access ■ 5
; Program is reading the sysop access level, this may be normal
; but still it is very suspect. It is the best way to give a user
; all priviledges. Check!
; ■ Search for : SYSOPSEC()
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 7 For/Next
; 1 While/EndWhile
; 73 If/Then or If/Then/Else
; 1 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------